<?php namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class ProjectBidding extends Model {

	//
	protected $table = 'project_bidding';



	public function user()
	{
		return $this->hasOne("App\Models\Users", "id", "uid");
	}

	public function poweruser()
	{
		return $this->hasOne('App\Models\EnterpricePowerusersBase', 'uid', 'uid');
	}

	public function energysaver()
	{
		return $this->hasOne('App\Models\EnterpriceEnergysaverBase', 'uid', 'uid');
	}

	public function devicetech()
	{
		return $this->hasOne('App\Models\DevicetechProviderBase', 'uid', 'uid');
	}

	public function thirdparty()
	{
		return $this->hasOne('App\Models\ThirdpartyBase', 'uid', 'uid');
	}

	public function government()
	{
		return $this->hasOne('App\Models\GovernmentBase', 'uid', 'uid');
	}

	public function association()
	{
		return $this->hasOne('App\Models\AssociationBase', 'uid', 'uid');
	}

}
